package com.xiyuan.Entity2Json.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class TestBean extends JsonResult {
    //    接口名称
    private String summary;
    //  过时？
    private boolean deprecated;
    //    描述
    private String description;
    //    标签
    private List<String> tags = new ArrayList<>();

    //    参数
    //    请求体
    private Map<String, Object> requestBody;
    //      响应体
    private Map<String, Object> responses;

    public TestBean addTags(String tag) {
        tags.add(tag);
        return this;
    }

}
